package com.bocom.service;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bocom.dao.*;

@Service("UserService")
public class UserService {
	
	@Resource
	private UserDAO userDao;

	public int userCount() {
		if(userDao.getAllUser()==null)
		{
			return 0;
		}
		return userDao.getAllUser().size();
	}
	
	public String hello() {
		return "hello";
	}	

	public UserDAO getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDAO userDao) {
		this.userDao = userDao;
	}

}
